target_include_directories(${PROJECT_NAME}.elf 
    PUBLIC 
    ${CMAKE_CURRENT_LIST_DIR}
    ${CMAKE_CURRENT_LIST_DIR}/Legacy
)

target_sources(${PROJECT_NAME}.elf
    PRIVATE
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_cortex.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_tim.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_tim_ex.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_uart.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_uart_ex.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_rcc.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_rcc_ex.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_flash.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_flash_ex.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_gpio.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_dma.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_dma_ex.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_pwr.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_pwr_ex.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_i2c.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_i2c_ex.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_exti.c
    ${CMAKE_CURRENT_LIST_DIR}/stm32g0xx_hal_timebase_tim_template.c
)
